
package snucse.teamd;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.List;
import java.util.Vector;

import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;

import snucse.teamd.math.Vec2;

//import snucse.teamd.math.*;


/**
 * @author k2d2o2
 *
 */
public class TinyPhy  {

	/**
	 * @param args
	 */

	static World world = new World();
	
	
	public static void main(String[] args)   {
		
		
		Vector<Vec2> vertices;
		vertices = new Vector<Vec2>();
		vertices.addElement(new Vec2(650, 350));
		vertices.addElement(new Vec2(650, 450));
		vertices.addElement(new Vec2(750, 450));
		vertices.addElement(new Vec2(750, 350));
		Body body = new Body( 
				false,
				0f, 
				30f, 
				new Vec2(-110,0), 
				(float)Math.PI*0.2f,
				0.2f,
				0.7f,
				(List<Vec2>) vertices);
		world.addBody(body);
		
		vertices = new Vector<Vec2>();
		vertices.addElement(new Vec2(10, 350));
		vertices.addElement(new Vec2(10, 450));
		vertices.addElement(new Vec2(70, 450));
		vertices.addElement(new Vec2(130, 350));
		vertices.addElement(new Vec2(100, 270));
		body = new Body( 
				false,
				0f, 
				30f, 
				new Vec2(50,0), 
				(float)Math.PI*0.3f,
				0.2f,
				0.7f,
				(List<Vec2>) vertices);
		world.addBody(body);
		
		UIController window = new UIController(world);
		
	}		
}
